import { createRouter, createWebHistory } from 'vue-router'
import routes from './routes'
import { setupGuard } from '@/router/guard'

const router = createRouter({
  history: createWebHistory(),
  routes,
})

setupGuard(router)

export default router
